package com.service.base;

public class DeviceConstant {

	public enum FTP{  		
		host("host"), port("port"), username("userName"), password("password");  
	    private String str;  
	    private FTP(String str) {  
	        this.str = str; 
	    }
	    public String getStr() {  
	        return this.str;  
	    }
	}
	
	public enum TypeAttribute {  		
		CONFIG("config"), NOTFIY("notfiy"), PERFILE("perfile"), EVENT("event"),SERVICEPERFILE("serviceperfile");  
	    private String name;  
	    private TypeAttribute(String name) {  
	        this.name = name;  
	    }  
	    public String getName() {  
	        return this.name;  
	    }
	} 
	
	public enum DeviceState {
		postCode("200"),		
		connected("connected"), 
		disconnected("disconnected");  

	    private String name;  

	    private DeviceState(String name) {  
	        this.name = name;  
	    }  
	    public String getName() {  
	        return this.name;  
	    }
	}
	
	public enum LogType {  
		LOGINLOG(2,"设备登陆日志"),
		POSTLOG(1,"POST日志");  

		private Integer index;
		
	    private String name;  

	    private LogType(Integer index,String name) { 
	    	this.index=index;
	        this.name = name;  
	    }  
	    public String getName() {  
	        return this.name;  
	    }
	    public Integer getIndex() {  
	        return this.index;  
	    }
	}
	
	
}
